<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017-11-09
  Time: 11:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>火车票查询</title>
    <link href="css/bootstrap.min.css"  rel="stylesheet">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery3.2.js"></script>
    <script >
        $(function () {
            $("#submit").click(function(){
                var trainNum=$("#trainNum").val();
                var station1=$("#station1").val();
                var station2=$("#station2").val();

                if(trainNum==""||trainNum==null)
                {
                    alert("请输入完整信息");
                    return false;
                }
                if(station1==""||station1==null)
                {
                    alert("请输入完整信息");
                    return false;
                }
                if(station2==""||station2==null)
                {
                    alert("请输入完整信息");
                    return false;
                }
                return true;


            });
        })
    </script>
</head>
<body>
<form method="post" action="/Query/QueryByTrainnum">
   <h4 align="center">查询车票价格</h4>

<h5 align="center" class="navbar-text" >车次</h5><%--<input type="text" name="trainNum" class="form-control">--%>
    <input type="text" id="trainNum" name="trainNum" class="form-control" placeholder="车次" aria-describedby="sizing-addon1">
    <h5 align="center"  class="navbar-text">出发地</h5>
    <input type="text" id="station1" name="station1" class="form-control" placeholder="出发地">
        <h5 align="center"  class="navbar-text">目的地</h5>
    <input type="text" id="station2" name="station2" class="form-control" placeholder="目的地"><br>
    <input type="submit" value="查询" class="btn btn-danger btn-group btn-group-justified" id="submit" >
</form>
</body>
</html>
